import Vue from 'vue'
import VueRouter from 'vue-router'
import ShouYe from '@/views/shouye.vue'
import WoDe from '@/views/wode.vue'
import ZhaoFang from '@/views/zhaofang.vue'
import ZiXun from '@/views/zixun.vue'
import ZhuShouYe from '@/views/zhushouye.vue'
const City = () => import('@/views/city.vue')

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: ZhuShouYe,
    redirect: '/shouye',
    children: [
      { path: '/wode', component: WoDe },
      { path: '/zhaofang', component: ZhaoFang },
      { path: '/zixun', component: ZiXun },
      { path: '/shouye', component: ShouYe }
    ]
  },
  { path: '/city', component: City }
]

const router = new VueRouter({
  routes
})

export default router
